const noteApi = {
    getNote: {
        name: '获取笔记列表',
        url: '/note/list',
        method: 'GET',
        successMessage: false,
        userPower: true,
        dataParam: false
    },
    topNote: {
        name: ['置顶笔记', '取消置顶笔记'],
        url: '/note/top',
        method: 'GET',
        successMessage: true,
        userPower: true,
        dataParam: false
    },
    deleteNote: {
        name: ['删除笔记', '彻底删除笔记'],
        url: '/note/delete',
        method: 'DELETE',
        successMessage: true,
        userPower: true,
        dataParam: false
    },
    renameNote: {
        name: '重命名笔记',
        url: '/note/rename',
        method: 'POST',
        successMessage: true,
        userPower: true,
        dataParam: true
    },
    createNote: {
        name: '创建笔记',
        url: '/note/create',
        method: 'PUT',
        successMessage: false,
        userPower: true,
        dataParam: false
    },
    editNote: {
        name: '获取编辑的笔记',
        url: '/note/edit',
        method: 'GET',
        successMessage: false,
        userPower: true,
        dataParam: false
    },
    saveNote: {
        name: '保存笔记',
        url: '/note/save',
        method: 'POST',
        successMessage: true,
        userPower: true,
        dataParam: true
    }
}

export default noteApi 